package cly.thirdpartyconsumer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 资质表
 * @TableName supplier_qualification_combined
 */
@TableName(value ="supplier_qualification_combined")
@Data
public class SupplierQualificationCombined {
    /**
     * 供应商编码
     */
    private String code;

    /**
     * 供应商名称
     */
    private String name;

    /**
     * 资质编号
     */
    private String qualcode;

    /**
     * 生效日期
     */
    private String dbegdate;

    /**
     * 有效期至
     */
    private String denddate;

    /**
     * 对比标识
     */
    private String fdlComparisonType;

    /**
     * 资质名称
     */
    private String cname;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SupplierQualificationCombined other = (SupplierQualificationCombined) that;
        return (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getQualcode() == null ? other.getQualcode() == null : this.getQualcode().equals(other.getQualcode()))
            && (this.getDbegdate() == null ? other.getDbegdate() == null : this.getDbegdate().equals(other.getDbegdate()))
            && (this.getDenddate() == null ? other.getDenddate() == null : this.getDenddate().equals(other.getDenddate()))
            && (this.getFdlComparisonType() == null ? other.getFdlComparisonType() == null : this.getFdlComparisonType().equals(other.getFdlComparisonType()))
            && (this.getCname() == null ? other.getCname() == null : this.getCname().equals(other.getCname()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getQualcode() == null) ? 0 : getQualcode().hashCode());
        result = prime * result + ((getDbegdate() == null) ? 0 : getDbegdate().hashCode());
        result = prime * result + ((getDenddate() == null) ? 0 : getDenddate().hashCode());
        result = prime * result + ((getFdlComparisonType() == null) ? 0 : getFdlComparisonType().hashCode());
        result = prime * result + ((getCname() == null) ? 0 : getCname().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", qualcode=").append(qualcode);
        sb.append(", dbegdate=").append(dbegdate);
        sb.append(", denddate=").append(denddate);
        sb.append(", fdlComparisonType=").append(fdlComparisonType);
        sb.append(", cname=").append(cname);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}